<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">

    <ul class="nav nav-tabs">
        <li><a href="{:url('Department/index')}">部门列表</a></li>
        <li><a href="{:url('Department/add')}">添加部门</a></li>
        <li class="active"><a href="">编辑部门</a></li>
    </ul>

    <div class="row margin-top-20">
        <div class="col-md-1">

        </div>
        <div class="col-md-6">
            <form class="js-ajax-form" action="{:url('Department/editPost')}" method="post">
                <input type="hidden" name="id" value="{$this_page['id']}" style="display: none;">
                <table class="table table-bordered">
                    <tr>
                        <th width="100">部门名称<span class="form-required">*</span></th>
                        <td>
                            <input type="text" class="form-control" name="name" value="{$this_page['name']}">
                        </td>
                    </tr>

                    <tr>
                        <th>状态</th>
                        <td>
                            <div class="checkbox">
                                <label>
                                    <php>
                                        $status_yes = $this_page['status']==1?"checked":"";
                                    </php>
                                    <input type="checkbox" name="status" value="1" {$status_yes}>发布
                                </label>
                            </div>
                        </td>
                    </tr>
                    <!--                    <tr>-->
                    <!--                        <th>缩略图</th>-->
                    <!--                        <td>-->
                    <!--                            <div>-->
                    <!--                                <input type="hidden" name="more[thumbnail]" class="form-control"-->
                    <!--                                       id="js-thumbnail-input">-->
                    <!--                                <div>-->
                    <!--                                    <a href="javascript:uploadOneImage('图片上传','#js-thumbnail-input');">-->
                    <!--                                        <img src="__TMPL__/public/assets/images/default-thumbnail.png"-->
                    <!--                                             id="js-thumbnail-input-preview" width="135" style="cursor: pointer"/>-->
                    <!--                                    </a>-->
                    <!--                                </div>-->
                    <!--                            </div>-->
                    <!--                        </td>-->
                    <!--                    </tr>-->
                    <tr>
                        <th></th>
                        <td>
                            <div class="form-group">
                                <button type="submit" class="btn btn-primary js-ajax-submit">提 交</button>
                                <a class="btn btn-default" href="javascript:history.back(-1)">返 回</a>
                            </div>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>